﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using T4Utilities;

namespace T4UtilitiesTests.GenericParameterCollectionTests
{
    [TestClass]
    public class MultipleParametersTests
    {
        private GenericParameterCollection _collection;

        [TestInitialize]
        public void Setup()
        {
            _collection = new GenericParameterCollection();
            _collection.Add("p");
            _collection.Add("q");
        }

        [TestMethod]
        public void TypeDeclartion()
        {
            Assert.AreEqual("<P, Q>", _collection.TypeDeclaration);
        }

        [TestMethod]
        public void MethodParameters()
        {
            Assert.AreEqual("P p, Q q", _collection.MethodsParameters);
        }
    }
}
